package com.retoc.graduationtravel.domain.req;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName article
 */
@TableName(value = "article")
@Data
public class ArticleSaveReq implements Serializable {
    /**
     * ID
     */
    @TableId
    private Long id;

    /**
     * 标题
     */
    private String title;

    /**
     * 描述
     */
    private String description;

    /**
     * 城市ID
     */
    private Integer cityId;

    /**
     * 作者ID
     */
    private Integer userId;

    /**
     * 文章内容
     */
    private String content;

    /**
     * 发文时间
     */
    private Date date;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}